<?php
	$db = mysql_connect("localhost", "root");
	mysql_select_db('answer_sheet', $db);
	$row = mysql_fetch_array(mysql_query('SELECT name, isAnswered FROM answer_table WHERE link ='."'".$_POST['link']."'"));
	if ($row['isAnswered'] == 1){
		echo $row['name'];
	}
	mysql_close($db);
?>